package cn.ctodb.divination.service.dto;


import java.io.Serializable;
import java.util.Objects;
import javax.persistence.Lob;

/**
 * A DTO for the Bysl entity.
 */
public class ByslDTO implements Serializable {

    private Long id;

    private Integer num;

    private String yy;

    private String jx;

    private String ys;

    @Lob
    private String content;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }
    public String getYy() {
        return yy;
    }

    public void setYy(String yy) {
        this.yy = yy;
    }
    public String getJx() {
        return jx;
    }

    public void setJx(String jx) {
        this.jx = jx;
    }
    public String getYs() {
        return ys;
    }

    public void setYs(String ys) {
        this.ys = ys;
    }
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        ByslDTO byslDTO = (ByslDTO) o;

        if ( ! Objects.equals(id, byslDTO.id)) { return false; }

        return true;
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(id);
    }

    @Override
    public String toString() {
        return "ByslDTO{" +
            "id=" + id +
            ", num='" + num + "'" +
            ", yy='" + yy + "'" +
            ", jx='" + jx + "'" +
            ", ys='" + ys + "'" +
            ", content='" + content + "'" +
            '}';
    }
}
